package com.iot08.common.entity.app;


import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("device_message")
public class DeviceMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    //设备imei
    @Field("i")
    private String imei;

    //消息类型
    @Field("T")
    private String type;

    //腕表名称
    private String name;

    //当前电量百分比
    private Integer battery;

    //安全区域id
    private String railID;

    //安全区域名称
    private String railName;
    //安全区域相关动作("enter", "leave")
    private String action;
    //短信手机号
    private String phone;
    //短信内容
    private String content;
    //经度
    private Double lon;
    //纬度
    private Double lat;

    //定位类型: LBS, WIFI, GPS
    private String loc_type;
    //地址
    private String address;
    //设备照片id
    private ObjectId photoID;
    //文件名(xxx.jpg)
    private String image;
    //缩略图文件名(xxx.jpg)
    private String thumb;

    //显示APP通知栏的推送标题
    private String msgTitle;
    //显示消息中心的推送内容
    private String msgContent;

    //创建时的时间戳
    @Field("t")
    private Double time;

    private String operatorName;

    private Integer monthPlanV;

    private Integer status;

    private Date expiryAt;

    private Date createTime;

    private String value;

}
